<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity4">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>授权确认</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" type="text/css" href="/webjars/bootstrap/css/bootstrap.min.css"  th:href="@{/webjars/bootstrap/css/bootstrap.min.css}" />
<script type="text/javascript" src="/webjars/jquery/jquery.min.js" th:src="@{/webjars/jquery/jquery.min.js}" ></script>
<script type="text/javascript" src="/webjars/bootstrap/js/bootstrap.min.js"  th:src="@{/webjars/bootstrap/js/bootstrap.min.js}"></script>
</head>
<body>
	<div class="container">
		<h1>统一认证授权</h1>
		<p > 您<span th:text="'(' + ${userName} + ')'"></span>确定要把受保护资源的访问权限授予
		<span th:text="'[' + ${authorizationRequest.clientId} + ']应用'"></span>?
		</p>
		<form id='confirmationForm' name='confirmationForm'	action='/oauth/authorize' th:action="@{/oauth/authorize}" method='post'>
			<input name='user_oauth_approval' value='true' type='hidden' />
			<ul >
				<li  th:each="clientScope : ${clientScopes}">
				<div class='form-group'>
						scope.oauthscope: <input type='radio' th:name='${clientScope.key}'
							value='true' checked="true">允许</input> 
							<input type='radio' th:name='${clientScope.key}' value='false'>拒绝</input>
				</div>
				</li>
			</ul>
			<label><input name='authorize' value='确定授权' type='submit' /></label>
		</form>
	</div>

</body>
</html>